import requests
from bs4 import BeautifulSoup

# url = "http://jyta.ningbo.gov.cn/uploadFile/htmlFile/6A3AAAD4-3502-9DE0-B15F-2A5AC1CE8CF9.html"
# response = requests.get(url)
# content = response.content.decode('utf-8')
# bs = BeautifulSoup(content, "html.parser")
# text = bs.get_text()
# text = text.replace('\n\n', '')
# print(text)


path = '6A3AAAD4-3502-9DE0-B15F-2A5AC1CE8CF9.html'
with open(path, encoding='utf-8') as f:
    html = f.read()
    bs = BeautifulSoup(html, "html.parser")
    print(bs.get_text())
